import request from '@/utils/request'
//获取全国确诊人数，累计治愈，累计死亡，境外输入
export function getDetailsCount() {
    return request({
        url: '/web/details/count',
        method: 'get'
    })
}
export function getDataList(params) {
    return request({
        url: '/epidemic/details/list',
        method: 'get',
        params: params
    })
}
export function getDialog(params) {
    return request({
        url: '/web/user/dialog',
        method: 'get',
        params: params
    })
}

export function countDeath() {
    return request({
        url: '/web/details/countDead',
        method: 'get'
    })
}

//获取地图疫情数据
export function getDetailsList() {
    return request({
        url: '/web/details/list',
        method: 'get'
    })
}
//获取各个省份确诊人数并排序
export function countProvince() {
    return request({
        url: '/web/details/countProvince',
        method: 'get'
    })
}
//获取各个省份确诊人数并排序
export function countDay() {
    return request({
        url: '/web/details/countDay',
        method: 'get'
    })
}
//应急
export function defendlist(params) {
    return request({
        url: '/web/defend/list',
        method: 'get',
        params: params
    })
}
export function defendinfo(params) {
    return request({
        url: '/web/defend/info',
        method: 'get',
        params: params
    })
}

//政策解读
export function poicylist(params) {
    return request({
        url: '/web/policy/list',
        method: 'get',
        params: params
    })
}
export function poicyinfo(params) {
    return request({
        url: '/web/policy/info',
        method: 'get',
        params: params

    })
}
export function suggestPush(data) {
    return request({
        url: '/web/suggest/push',
        method: 'post',
        data: data

    })
}
export function suggestmySuggest(params) {
    return request({
        url: '/web/suggest/mySuggest',
        method: 'get',
        params: params

    })
}
export function suggestmydelete(data) {
    return request({
        url: '/web/suggest/delete',
        method: 'post',
        data: data

    })
}